const mongoose = require("./mongoose");
const UserSchema = new mongoose.Schema({
    openid: String, //  必填  用户openid
    nickname :String, // (20)  必填  用户微信昵称
    name: String,  // 必填  用户昵称
    phone: String,  //(11)  必填  用户手机
    avater: String, //(50)  必填  用户头像
    ticket: Number,  //  必填  用户当前票数
    picture: String,  //(50)  必填  用户分享的照片
})
const UserModel = mongoose.model("user",UserSchema,"user");
module.exports = UserModel; 